package net.thxjj.mobileServer.websocket;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;

public class SesstionBaseHandler extends HeartBeatBaseChannelInBoundHandler {


    @Override
    public void chanelReadR(ChannelHandlerContext channelHandlerContext, TextWebSocketFrame s) {
        if(!AppSocketMap.hasUser(channelHandlerContext.channel())){
            channelHandlerContext.close();
            return;
        }
    }

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        super.channelRead(ctx, msg);
    }

}
